POINT_UP=1
POINT_DOWN=2
POINT_RIGHT=3
POINT_LEFT=4

class Point:
    x = None
    y = None
    dir = None
    
    def move_down(self, distance ):
        self.y = self.y + distance
    
    def move_up(self, distance):
        self.y = self.y - distance
        
    def move_right(self, distance):
        self.x = self.x + distance
        
    def move_left(self, distance):
        self.x = self.x - distance
        
        
    def move(self, distance):
        if ( self.dir == POINT_UP ):
            self.move_up(distance)
        if ( self.dir == POINT_DOWN ):
            self.move_down(distance)
        if ( self.dir == POINT_RIGHT):
            self.move_right(distance)
        if ( self.dir == POINT_LEFT):
            self.move_left(distance)
    
    
 
